/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package barcos;

/**
 *
 * @author rubentxu
 */
import java.util.Scanner;
public class Barcos {
    
    public static void tocado_hundido(int f,int c)
    {
        if(matriz[f-1][c-1]==0)
        {
            System.out.println();
            System.out.println("AGUA");
        }else
        {
            System.out.println("TOCADO");
        }
    }
    public static void main(String[] args) 
    {
        int fila,columna;
        int barco1[][]={{2,2},{2,3},{2,4},{2,5}};//barco de 4
        int barco2[][]={{6,1},{6,2},{6,3}};//barco de 3
        int barco3[][]={{4,6},{5,6},{6,6}};//barco de 3
        int barco4[][]={{1,7},{2,7}};//barco de 2
        int barco5[][]={{4,2},{4,3}};//barco de 2
        int barco6[][]={{4,5},{5,5}};//barco de 2
        int barco7[][]={{1,1}};//barco de 1
        int barco8[][]={{3,4}};//barco de 1
        int barco9[][]={{5,4}};//barco de 1
        int barco10[][]={{6,5}};//barco de 1
        
        int tocado4[]={0,0,0,0};
        int tocado31[]={0,0,0};
        int tocado32[]={0,0,0};
        int tocado21[]={0,0};
        int tocado22[]={0,0};
        int tocado23[]={0,0};
        int tocado11[]={0};
        int tocado12[]={0};
        int tocado13[]={0};
        int tocado14[]={0};
        
        int matriz[][]={{1,0,0,0,0,0,1},{0,1,1,1,1,0,1},{0,0,0,1,0,0,0},{0,1,1,0,1,1,0},{0,0,0,1,1,1,0},{1,1,1,0,1,1,0}};
        Scanner sc=new Scanner(System.in);
        
        do
        {
            System.out.print("fila entre 1 - 6 :");
            fila=sc.nextInt();
        }while(fila<1 || fila>6);
        
        do
        {
            System.out.print("columna entre 1 - 7 :");
            columna=sc.nextInt();
        }while(columna<1 || columna>7);
        
        
    }
}
